import request from '@/utils/request'

// 查询项目资源监控列表
export function listProjectMonitor(query) {
  return request({
    url: '/training/projectMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询项目资源监控详细
export function getProjectMonitor(id) {
  return request({
    url: '/training/projectMonitor/' + id,
    method: 'get'
  })
}

// 新增项目资源监控
export function addProjectMonitor(data) {
  return request({
    url: '/training/projectMonitor',
    method: 'post',
    data: data
  })
}

// 修改项目资源监控
export function updateProjectMonitor(data) {
  return request({
    url: '/training/projectMonitor',
    method: 'put',
    data: data
  })
}

// 删除项目资源监控
export function delProjectMonitor(id) {
  return request({
    url: '/training/projectMonitor/' + id,
    method: 'delete'
  })
}
